Make Coercer.coerce return if passed a nil value

This eliminates an otherwise necessary nil check in the code that’s
doing the coercing.
Move relation methods into the Element class

Because it relies on the element instance variable, it doesn’t make
sense to have the methods separate. This change also makes it much
easier to extract shared code between relations into instance methods
on Element.