Improve interfaces of freeTyoeLibraray_c and testLayout_c