speed optimization, add initial support for unknown size array parameters