Fix line endings and check returned type.
Extract operator node creation to Operator.
Allow setting properties via setter.