Correctly infer foreign_key from associations with multi-word model classes

Allows associations with SObject subclasses like 'ActionItem' to correctly infer a foreign key of 'action_item_id' instead of 'actionitem_id'.