AssParser: make workaround more generic