[core] implementation of native type stack