Disabling BORDER_CONSTANT for pyramid functions

Added assert to check for borderType is not BORDER_CONSTANT for pyrDown and borderType is only  BORDER_DEFAULT for pyrUp, since another modes doesn't make sense for these functions and works incorrect.