Clean up some warnings, improve --trace readability

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>