Improved support for endmethod, endfunction and endselect.
Fixed problem consuming method with certain names.