types of a syntax are an associative array, not both a regular array and an associative.  Plugins always need defaults, not just if there are values set.  Flash overrides to an img, but only temporarily. $longTypeName need to at least be not empty.