update parser to handle [] list and raise error on solo return statement
add tests for both