avoid using funcrefs in the core implementation (#91).