niti: use PrimitiveInstance for `null_instance`

Signed-off-by: Jean Privat <jean@pryen.org>
niti: use `write_attribute` in old path of initializers

Signed-off-by: Jean Privat <jean@pryen.org>
niti: fix some comments

Signed-off-by: Jean Privat <jean@pryen.org>