Fixed isarray test
Fixed some comma, semicolon problems
Removed dead redefinitions
Made listLocal take a search/prefix key
Began adding provision for segmented layout caching