FIX: Added parameter array checking

Fixed regex issue that caused almost all tests to fail.