Fix #21 and change the MQL semantics slightly to match the original MQL
Add test for semantics from #21
Merge pull request #40 from barakmich/mql_bug_21

Fix #21 and test the correct semantics