add support for array and map lengths post-facto