Allowed dynamic proxying of 'toXXX' methods, and fixed some bugs in calculation of method names to invoke