Fix error with passing arguments to class methods

Hi Thijs,

I saw your lightning talk at boston.rb and am starting to use your gem to build dynamic class methods. I found this bug however when creating class methods that expect arguments. I added a test and fixed the bug. Otherwise things seem to be working fine. Thanks!

Andy Hartford