Added beansToArray method.
Params no longer required for custom method in Resty Can.
Added extra test case for code path custom in Resty can.