Change toInteger behavior

Now returns the converted array (instead of returning void and converting
the argument passed as a reference.)

- Change test to reflect new behavior
- Change Framework usage (in Joomla\Form\Form)