Core: Fix support for non-string, non-object constructor parameters.