Addresses some issues raised in #4
No longer chop off opening brackets for nested arrays
Ignore trailing backslashes