Added new function to get process parameters as an array (which makes twig stuff a bit easier and cleaner) and its related tests