Don't crash when creating an RMemory which points at NULL
Add bool type, fix function introspection.