[nim] Extracted sub-template sim_object