Fixed a bug in opt_clean and some RTLIL API usage cleanups