ErlangFileImpl: initialize cached values properly