Skip leading UTF-16LE BOM, if any, for programs and notes, as the interpreter chokes on it.

Reported and tested by wawachief.

Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
Tentatively add type IDs for .hpappnote and .hpappprgm, so that beta-testers can play with them, and confirm or infirm.

Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>