Prepend package when available to cpp methods

I ran into an issue with HypRate that the methods would not be found on iOS because the namespace/package name was not prepended to the primitive name.

I have added logic to add the package and an underscore to the primitive name if the package is not null or empty string.