Fix for enumerable model types

There was this bug with enumerable model types in <code>ToOperation()</code>. As it turned out, I wrote almost the same code in <code>CreateModelProperty</code>.

I combined the two into a <code>ToDataType(Type)</code>, from which both <code>Operation</code> and <code>ModelProperty</code> derive.