Fixes several swfdec AVM1 tests

* Fixes tests related to 'undefined' print and comparisons
* Enables more 'tracetest-swfdec' tests
* Cherrypicks log/warn refactoring from #1867