Add PrimitiveType

Explicitly check if the type in question is a primitive and should be
passed by const reference.  This makes it obvious that String16
instances are being passed by value.

Bug: 24470786
Test: unit tests, integration tests continue to pass

Change-Id: Ie822d89413aa8b87bc92765c73821edfcba4197c
5 files changed