Fix AndroidManifest meta-data parsing.

Differentiates between meta-data specified using the android:value and
android:resource attributes and resolves value attributes as the correct
type.

Fixes #950, Closes #1019.