set some input data readonly

Where ever possible.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>