DiscoveredReflection: refactoring getHasManyReference() and getBelongsToReference() [Closes #921]
Session: added validation for session ID value [Closes #965]
ObjectMixin: check extension method before magic @method