Fixed parser bug.
Fixed some more case inferencing bugs.