handle dynamic bounds of type SHAPED