[core] Add support for numpy float16