some fixes for types - resource is not really composite, and array is not really handle type
fixes for conversions