Recursively replace placeholders in metafunction `apply`

Signed-off-by: K-ballo <k@fusionfenix.com>