fix collada writer
fixed reading/writing link state for external references