PageBuilder uses arrays instead of ArrayLists

Also removed the type mismatch suppression from the last commit