Remove extra memmove declaration.
Add conformance test for Surface.scroll
Move common checks to utility methods.