Move literal matchers to literal.js