Fixes a few issues and potential issues with transform-based scrolling. Fixes some of the broken unit tests.