move colon in parameters, use lastIndex
add tests and remove null checks for primitive arrays, add test for null value to Array