Don't regenerate type information if object file hasn't changed

@Philonous @reinh