Fix type checking
Merge pull request #4 from OpenDTP/hot/ref#35

Fix type checking