Check types of sync and async getters created by belongsTo, close #266