Scripts: exposed _uid, _id and _type fields as stored fields (_fields notation)

The _uid field wasn't available in a script despite it's always stored. Made it available and made available also _id and _type fields that are deducted from it.

Closes #6406