catch invalid function error
fix var_dump format for string in keys
ensure the output is only a binary
add empty and array_01 tests
add strings and template tests