Filters belongs_to associations by :class_name if specified

See https://groups.google.com/d/msg/hydra-tech/dKu91YW2nk8/3yXuTl974FIJ for original discussion on topic.   
This adds the filtering of the class type to the association query when it is specified via the :class_name attribute.