allow array($object, $method) on all callback functions

- allow array($object, $method) as the function name on all callback functions
- type hint the $new_work_units parameter of addwork needs to be an array
Merge pull request #3 from LiftMe/master

allow array($object, $method) on all callback functions