corejs: started implementing corerels, bugfix on coretree (do not use
node.data, it might be stale)