move getObjectType back to the pref key interface and implement it in AbstractPrefKey. Piggybacking a bit of cleanup