Correct pagination
Can't test on arrays anymore. Todo.
Merge branch 'feature/serialize' into develop