Added primitive Array filtering

- You can filter primitive arrays
- Minor performance optimizations