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

Hiya,

A while ago we discussed that @AndroidPreference should either auto-extend BasePreference or throw an error/warning that BasePreference is not extended.

This patch implements the latter.

Please review and merge. Thanks!