improved API doc typehint implementation for Arrays and Objects