Fix for using optional types in where clause
Merge pull request #30 from colinbull/master

Fix for using optional types in where clause