Fix Issue 3990 - Deferencing a dynamic array as pointer

Deprecation -> Error
Merge pull request #3912 from yebblies/issue3990

Issue 3990 - Deferencing a dynamic array as pointer