Polymorphic mapping closed #57

Add naive automatic polymorphic detection