Add array type verification before accessing index (#49)
Add array type verification before accessing index (#49)

Since the $rule may now be array as well as a Closure, the array type must be checked before trying to access indexes.
Also, `applyFilter` calls is corrected to respect it's signature.
This should fix `ErrorException Illegal string offset 'name'` being thrown.

Fixes Waavi#48
Waavi/Sanitizer