another parse_as_rest patch, thanks Denes