add fast-path encoding for long, doubles, keywords, and strings