Fixed Relation::hasReferenceFor()
Fixed Record::toArray()