[clean] externalize detection of type
[clean] externalize detection of type

remove possible memoryleak (switch create_function for anonymous
function)

kunstdesign/staceyUP,kunstdesign/staceyUP,kunstdesign/staceyUP