added Ember.typeOf func for attr

To help you guys next time around :)