core: introduce KERNEL_PID_FIRST and KERNEL_PID_LAST
core: let valid PIDs start with 1
Merge pull request #1566 from Kijewski/undef_is_null

core: let PIDs begin with 1