use constant for indent
pretty print for array, see#224
adjust test for pretty array format
add tests for pretty format