. . . "Whether a liquidated damages clause is an unenforceable penalty is a question of law for the court, but sometimes factual issues must be resolved before the court can decide the legal question." .