FIX undefined offset when methods have default parameters

This should fix the problem with default parameters described at: #9

But this works only for PHP 5.3+