Nitpicking the code

Minor changes here and there to remove warnings and make code cleaner and more uniform.
Is the array here to avoid the allocation for each frame from the varargs ``.transform()`` method in the builder? If so I think it's fine, but we should move the ``transformation != null`` assertion in line 73 above the array creation.