#75 #212 implemented equals + typecheck. should work like in rail now. if you compare two different types, the result is false.