Fix a few issues found by Attila (invalid array access in channel set events, os_chankill inf loop)
Fix some warnings and errors reported by valgrind
Allow channels on access lists