[pretty refactor] Move type prefix out of core value_t logic.