Fix for #16 - case classes defined in methods cause error
Merge pull request #22 from rorygraves/case_in_method_fix

Fix for #16 - case classes defined in methods cause error