#KJ-66 Replace methodClosure() with methodRef() inside <k>. #Fixed. Corrected a bug in api-core.k introduced by the previous commit.