fix and optimize typed array loads in Frame