fixed an NPE
using new getTypeCount() method instead of trying and waiting for an exception
fixed a really dumb problem
splitting inlined return locals to help type assigning
do not conclude a[x] -> null if a[x] = 0
Merge remote-tracking branch 'origin/develop' into develop-patches