added PRINT_ARRAY macro to bpls.c with type format as parameter