Generate log statement for all skipped decls, also fixes a restrict bug