Added code to determine if BasePreference is extended.
Merge pull request #32 from Buggaboo/merge_upstream_user_friendly_preferences_annotation

@AndroidPreference: Added code to determine if BasePreference is extended.