new Arr helpers: gatherkeys, applymapping, trim

gatherkeys, works as gather only also gathers the keys along with the
values. applymapping, takes a key and a map and applies the mapping to the
key in a tabular array. trim, removes null entries.

Methods added as part of acctg implementation requirements.