Pattern dark matter and galaxy scaling relations