Adding lifecycle callbacks to types, fixing callbacks on fields and adding hooks for all of them. #147