Merge "Remove type tests when recycling input events."