Storage: Implement LIMIT, fix a few small issues.