reinstate print_array modifier so that api examples are generated