Fix basic type extensions.

It got broken after improvement of extendProperties in es5-ext
Accept null values from functions