fix crash in reset layout command in initial screen.
make the return value in some new chest test functions have case consistent with rest of the code.
make prt_map() a bit more efficient.(probably: in the worst case, in text mode, an increment and a failed test >1 becomes an add with an assignment.)
Merge remote-tracking branch 'blubaron/fixes_dec2012'