Add allowReturnOutsideFunction option

Issue #86