Went back and finished up a couple things that depended on APIs that hadn't been ported yet, and also ported a couple helper funcs. croc/internal/basic is getting too big.