some small fixes for constant arrays