allow method defs in any value position. fixes #2616