fixes some typos and types

review @retronym /cc @densh