make Node.type_id field private
Merge pull request #3210 from seanmonstar/private-node-type-id

make Node.type_id field private, access through type_id()