core: when we return a id, ensure we autoclass the right class name from the instance.
avoid broken test atm
add gitignore