Check types of sync and async getters created by belongsTo, close #266
Allow null properties for headless models