fix bug in registerizeHarder in native optimizer, where we would fill up the link maps unnecessarily