irio: always write entities/types before their users
irio: remove set_op_pinned function

You should specify the pinned attribute when calling new_ir_op and not
change it later.
avoid ir_op_ops struct in public API

structs are bad in a library API. We provide setter functions for the
fields now.
add missing (non-inline) implementation of get_irn_n_edges